/**
 * @Description:
 * @author Sun Yan
 * @date $
 */
import Cookie from "js-cookie"

export let setCookie = (key, val) => {
    Cookie.set(key, val, {expires: new Date(new Date().getTime() + 7 * 24 * 60 * 60 * 1000)})
}

export let getCookie = (key) => {
    return Cookie.get(key)
}

export let removeCookie = (key) => {
    return Cookie.remove(key)
}